package com.jeff.tianti.cms.service;

import com.jeff.tianti.cms.entity.TalentPool;
import com.jeff.tianti.cms.dao.TalentPoolDao;
import com.jeff.tianti.cms.dto.TalentPoolQueryDTO;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.stereotype.Service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author xujianfang
 * @desc TalentPoolService��
 * @date 2019-07-09
 */
@Service
public class TalentPoolService extends CommonService<TalentPool, String> {

    @Autowired
    private TalentPoolDao talentPoolDao;

    @Autowired
    public void setTalentPoolDao(TalentPoolDao talentPoolDao) {
        super.setCommonDao(talentPoolDao);
    }

    public PageModel<TalentPool> queryTalentPoolPage(TalentPoolQueryDTO talentPoolQueryDTO) {
        return this.talentPoolDao.queryTalentPoolPage(talentPoolQueryDTO);
    }

    public List<TalentPool> queryTalentPoolList(TalentPoolQueryDTO talentPoolQueryDTO) {
        return this.talentPoolDao.queryTalentPoolList(talentPoolQueryDTO);
    }


    public TalentPool findMaxSort() {
        return talentPoolDao.findMaxSort();
    }
}